<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateVchansTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('vchans', function (Blueprint $table) {
            $table->increments('id');
            // $table->string('sp_id',  200);
            $table->string('vchan_no', 100);
            $table->string('name');
            $table->string('title')->nullable();
            $table->string('subtitle')->nullable();
            $table->string('spell')->nullable();
            $table->string('short_desc', 100)->nullable();
            $table->string('long_desc')->nullable();
            $table->integer('vccat_id');
            // $table->string('vcareacat_id',  200);
            // $table->string('vlang_id',  200);
            $table->string('vlogo',  200)->nullable();
            // $table->string('Vcposter',  200);
            // $table->string('Vepg',  200);
            // $table->string('Vcstream',  200);
            $table->timestamp('expiring_at')->nullable();
            $table->timestamp('online_at')->nullable();
            $table->timestamp('offline_at')->nullable();
            $table->timestamp('published_at')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('vchans');
    }
}
